<!DOCTYPE html>
<html lang="ru">
<head>
	<meta charset="UTF-8">
	<title>MEDIA LIB</title>
	<link rel="stylesheet" href="views/lib/foundation5/css/foundation.css">
	<link rel="stylesheet" href="views/css/headhesive.css">
</head>
<body>
	

	{{path | raw}}

	<script src="views/lib/jquery-1.9.1.min.js"></script>
	<script src="views/lib/lodash.min.js"> </script>
	<script src="views/lib/knockout-3.1.0.debug.js"> </script>
	<script src="views/lib/moment-with-langs.js"> </script>
	<script src="views/lib/zebra_pin.js"> </script>
	


	<script>

		window.view = window.view || {};

		function ViewModel(){
			var self =  this;
			self.views = {}

			if(window.view.table !== undefined){
				_data_table = JSON.parse( _.unescape( _data_table ) );
				self.views.table = new window.view.table.Model( _data_table );
			}
		}

	
		$(function(){
			$('input[name=series_date]').val(
			  moment().format("YYYY-MM-DD HH:mm:ss")  
			);

			window.onscroll = function(){
				console.log('scroll');
				scrollY = 0; 
				if(window.pageYOffset !== undefined ){
					scrollY = window.pageYOffset; 
				}
				if(scrollY > 190){
					$("#top").addClass("header-top");
				}else if(scrollY < 190){
					$("#top").removeClass("header-top");
				}
			}

			ko.applyBindings(new ViewModel());			
		});
	</script>
</body>
</html>